package com.imooc.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * Created by 敲代码的卡卡罗特
 * on 2018/5/3 0:10.
 */
@Configuration
public class SecurityConfig extends WebSecurityConfigurerAdapter {
    @Override
    protected void configure(HttpSecurity http) throws Exception {
//        http.httpBasic()   //弹出框请求
       /* http.formLogin()   //表单验证
                .and()
                .authorizeRequests() //开启认证请求
                .anyRequest()        //任何请求
                .permitAll();    //都需要认证*/

    }
}
